package com.huluobo.a2201mvvm_imdemo.addFriend;

import androidx.lifecycle.MutableLiveData;

import com.huluobo.a2201mvvm_imdemo.mvvm.BaseViewModel;

/**
 * Created by LC on 2024/3/28.
 */
public class AddFriendViewModel extends BaseViewModel<AddFriendRepo> {
    MutableLiveData<String> success = new MutableLiveData<>();

    MutableLiveData<String> failed = new MutableLiveData<>();

    public void addFriend(String username, String reason) {
        repo.addFriend(username, reason, success, failed);
    }

    @Override
    protected AddFriendRepo createRepo() {
        return new AddFriendRepo();
    }
}
